package com.sunxiansheng.user.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunxiansheng.entity.BaseEntity;
import lombok.Data;

/**
 * Description: 封装从数据库中查询的数据
 * @Author sun
 * @Create 2024/7/9 16:02
 * @Version 1.0
 */
@TableName("user") // 指定表名
@Data
public class UserPo extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO) // 指定主键
    private Long id;

    private String name;

    private Integer age;

}